//
//  MeFileNormalCell.m
//  RainbowFM
//
//  Created by jv on 14-12-7.
//  Copyright (c) 2014年 RB. All rights reserved.
//

#import "MeFileNormalCell.h"

#define Info_Color_N ([UIColor colorWithRed:0.545098F green:0.545098F blue:0.545098F alpha:1.0F])


@implementation MeFileNormalCell


- (void)awakeFromNib {
    // Initialization code
    
    [self _initVar];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

#pragma mark - init

- (void)_initVar
{
    _arrowHImage = [UIImage imageNamed:@"me_myfile_cell_right_arrow_n"];
    _arrowPImage = [UIImage imageNamed:@"me_myfile_cell_right_arrow_p"];
    
    _bgHImage = [UIImage imageNamed:@"me_myfile_cell_bg_n"];
    _bgPImage = [UIImage imageNamed:@"me_myfile_cell_bg_p"];
    
}


#pragma mark - setter
- (void)setIsFouced:(BOOL)isFouced
{
    _isFouced = isFouced;
    
    if (_isFouced) {
        _bgImageView.image = _bgPImage;
        _nameLabel.textColor = [UIColor whiteColor];
        _infoLabel.textColor = [UIColor whiteColor];
        _arrowImageView.image = _arrowPImage;
    }else{
        _bgImageView.image = _bgHImage;
        _nameLabel.textColor = [UIColor colorWithRed:0.309804F green:0.309804F blue:0.309804F alpha:1.0F];
        _infoLabel.textColor = Info_Color_N;
        _arrowImageView.image = _arrowHImage;
    }
    
}

@end
